package com.fr.plugin.oauth2;

import com.fr.decision.fun.impl.AbstractLogInOutEventProvider;
import com.fr.decision.webservice.login.LogInOutResultInfo;

public class Oauth2LoginOutEvent extends AbstractLogInOutEventProvider {
    @Override
    public void loginAction(LogInOutResultInfo logInOutResultInfo) {
        System.out.println(" loginAction ." + logInOutResultInfo.getUsername());
    }

    @Override
    public String logoutAction(LogInOutResultInfo logInOutResultInfo) {
        OAuthLoginFilter.logout(logInOutResultInfo.getRequest(), logInOutResultInfo.getResponse());
        OAuthLoginFilter.deleteTicket (logInOutResultInfo.getRequest(), logInOutResultInfo.getResponse());
        return null;
    }

}
